dnorm
{stats}
Density distribution for the normal distribution
sample
{base}
Takes a sample of the specified size
seq
{base}
Create a sequence
unlist
{base}
Flattens a list into a vector by extracting all its elements
ifelse
{base}
Return a or b depending on the value of test
var
{stats}
Calculate variance
as.character
{base}
Coerce a vector to character
length
{base}
Returns number of elements in an object
tibble
{tibble}
A modern data frame from the tidyverse
is.na
{base}
Check if a value is NA/elements of vector are NA
lag
{dplyr}
Shift values in a vector or time series
order
{base}
Get indexes that will sort a vector
data.frame
{base}
Create a data.frame from vectors
min
{base}
Get minimum of a vector
grid.arrange
{gridExtra}
Places graphical objects into a rectangular grid
complete.cases
{stats}
Find Complete Cases
read_dta
{haven}
Read a .dta file (Stata data)
median
{stats}
Get median of a vector
regTermTest
{regress}
Perform statistical tests for individual regression coefficients
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
ggsave
{ggplot2}
Saves the last ggplot or a specified ggplot object to a file
as.numeric
{base}
Coerce a vector to numeric
arrange
{dplyr}
Sort values of data frame according to a variable/combination of varaibles
sd
{stats}
Get standard deviation of a vector
read_excel
{readxl}
Read an Excel file
nobs
{gdata}
Compute the number of non-missing observations
head
{utils}
Show first 5 rows of a data frame
factor
{base}
Create a factor
nrow
{base}
Get number of rows of a data frame
names
{base}
Retrieve names of a list/vector
ungroup
{dplyr}
Resolve grouping created with “group_by”
roc
{pRoc}
Create a Receiver Operating Characteristic (ROC) curve
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
c
{base}
Combine values/vectors into a vector
str
{utils}
Get the structure of an R object
filter
{dplyr}
Filter out rows of a data frame according to logical vector
range
{base}
Return range of values
cut
{base}
Convert Numeric to Factor
summary
{base}
Obtain summary statistics or detailed regression output
auc
{pRoc}
Returns the area under the curve
expression
{base}
Used in plots to add symbols to axes
mean
{base}
Get mean of a vector
binomial
{base}
Family argument in glm()
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
rnorm
{base}
Generate random numbers from a normal distribution
setwd
{base}
Set Working Directory
lm
{base}
Fit a linear model
rbind
{base}
Combine R objects by rows
glm
{base}
Fits generalized linear models
ls
{base}
Return a vector of character strings giving the names of the objects in the specified environment
predict
{stats}
Predict Probability
par
{graphics}
Set parameters of the plotting device
select
{dplyr}
Select columns from a tibble/data frame
list
{base}
Create a list object
pnorm
{base}
Returns the cumulative distribution function (CDF) of the normal distribution
group_tt
{tinytable}
Grouping in tinytable
bar
{base}
Used for annotations, such as “expression(paste(”-“,bar(y)))”
ordered
{dplyr}
Create an ordered factor
quantile
{stats}
Obtain empirical quantiles of a vector
max
{base}
Get maximum of a vector
log
{base}
log (default base = e)
plot
{graphics}
Generic function from base R to produce a plot
rm
{base}
Remove objects
as.data.frame
{base}
Functions to check if an object is a data frame, or coerce it if possible.
which
{base}
return indexes of TRUE entries of a logical vector
modelsummary
{modelsummary}
Creates regression and data tables
library
{base}
Load an R package
mutate
{dplyr}
Modify/create a column in a data frame
attr
{base}
Access or modify the attributes of an object
The end!